﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="flow.aspx.cs" Inherits="_Default" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html  xmlns:stedysoft>
<head runat="server">
<TITLE>确认保存流程图</TITLE>
<link href="inc/style.css" type=text/css rel=stylesheet>		

<style>
body {
	background-color: buttonface;
	scroll: no;
	margin: 7px, 0px, 0px, 7px;
	border: none;
	overflow: hidden;
	font-size:12px;

}
</style>
     <script type="text/javascript">
        function iniWindow() {
            var opener = window.dialogArguments;
            var FlowXML = opener.document.all.FlowXML;	 
            
            var xmlDoc = new ActiveXObject('MSXML2.DOMDocument');
            xmlDoc.async = false;
            xmlDoc.loadXML(FlowXML.value);
            var xmlRoot = xmlDoc.documentElement;
            var Flow = xmlRoot.getElementsByTagName("FlowConfig").item(0);
            filename = Flow.getElementsByTagName("BaseProperties").item(0).getAttribute("flowId") + '.xml';
            document.all.Hidden1.value = FlowXML.value;
            document.all.Hidden2.value = Flow.getElementsByTagName("BaseProperties").item(0).getAttribute("flowText");
        }
    </script>
</head>
<body onload='iniWindow()' onunload=''>
    <form id="form1" runat="server">
    <div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center"><img src="inc/images/messages.jpg">您确认保存流程图吗？</div></td>
  </tr>
  <tr>
    <td> &nbsp;
      <div align="center">
        <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click" />
        &nbsp;&nbsp;    
        <input name="button" type="button" value="取消" onclick="javascript: window.close();" />
    </div></td>
  </tr>
</table>
         <input id="Hidden1" name="Hidden1" type="hidden" value="" runat="server" />
        <input id="Hidden2" name="Hidden1" type="hidden" value="" runat="server" />
  
    </div>
    </form>
</body>
</html>
